package java8_20;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class JiaowuTest2 {
    public static void main(String[] args) {
        Jiaowuchu j=new Jiaowuchu();
        j.name="北大青鸟教务处";
        Student s=new Student();
        Scanner in=new Scanner(System.in);
        System.out.println("请输入学生的姓名，年龄，两门课成绩：");
        s.name=in.next();
        s.age=in.nextInt();
        s.javaScore=in.nextInt();
        s.htmlScore=in.nextInt();
        System.out.println("在main中：");
        s.show();
        int avg=j.calc2(s);
        System.out.println("计算后：");
        s.show();
        System.out.println("平均分是："+avg);
    }
}
